
let printMember = function (params) {
    let a = "BillHead：1+x电影生活空间（" + params.tName + "店）会员充值单\n";
    let b = "卡号：" + params.cardNo + '\n';
    let c = "卡类型：" + params.cardType + '\n';
    let d = "积分：" + params.integral + '\n';
    let e = "充值前余额：" + params.price + '\n';
    let f = "充值金额：" + params.money + '\n';
    let g = "充值后金额：" + params.balance + '\n';
    let h = "充值时间：" + params.createTime + '\n';
    let i = "____________________________________\n";
    let j = '';
    params.payWayList.map((item, index) => {
        j += "付款方式" + parseInt(index + 1) + "：" + item.payWay + '          金额：' + item.money + '\n';
    })
    let l = "应收金额：" + params.money + '            实收金额：' + params.money + '\n';
    let m = "____________________________________\n";
    let n = "收营员：" + params.account + '打印次数[' + params.printNum + ']' + '打印时间：' + params.printTime + '\n';
    let o = "收营员签字：" + '              顾客签字：               ' + '\n';
    let p = "尊敬的顾客，欢迎光临！预约电话" + params.phoneNum + "\n";
    let q = "本公司禁止黄、赌、毒，祝您消费愉快";
    return a + b + c + d + e + f + g + h + i + j + l + m + n + o + p + q;
}
let printDeposit = function (params) {
    let a = "1+x电影生活空间（" + params.tName + "店）客存单\n";
    let b = "账单号：" + params.depositCode + '\n';
    let c = "手机号：" + params.phoneNum + '\n';
    let d = "客存时间：" + params.createTime + '\n';
    let e = "保存有效期限（90天）：" + params.overTime + '\n';
    let i = "____________________________________\n";
    let j = "商品          数量           状态\n";
    let h = "____________________________________\n";
    let k = '';
    params.productList.map(item => {
        k += item.product + '          ' + item.number + '          ' + item.status + '\n';
    })
    let m = "____________________________________\n";
    let n = "收营员：" + params.account + '打印次数[' + params.printNum + ']' + '打印时间：' + params.printTime + '\n';
    let o = "收营员签字：" + '              顾客签字：               ' + '\n';
    let p = "尊敬的顾客，欢迎光临！预约电话" + params.phoneNum + "\n";
    let q = "本公司禁止黄、赌、毒，祝您消费愉快";
    return a + b + c + d + e + i + j + h + k + m + n + o + p + q;
}


export { printMember, printDeposit }